<?php

namespace AdminsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Activity
 *
 * @ORM\Table(name="activity")
 * @ORM\Entity(repositoryClass="AdminsBundle\Repository\ActivityRepository")
 */
class Activity
{
    /**
     * @var int
     *
     * @ORM\Column(name="activity_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="activity_title", type="string", length=255)
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="activity_cover", type="string", length=255)
     */
    private $cover;

    /**
     * @var string
     *
     * @ORM\Column(name="activity_content", type="text")
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="activity_conditions", type="text")
     */
    private $conditions;

    /**
     * @var integer
     *
     * @ORM\Column(name="activity_type", type="integer")
     */
    private $type;

    /**
     * @var integer
     *
     * @ORM\Column(name="activity_status", type="integer")
     */
    private $status;

    /**
     * @var integer
     *
     * @ORM\Column(name="activity_orders", type="integer", nullable=false)
     */
    private $orders;

    /**
     * @var integer
     *
     * @ORM\Column(name="activity_update", type="integer", nullable=false)
     */
    private $update;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Activity
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set cover
     *
     * @param string $cover
     *
     * @return Activity
     */
    public function setCover($cover)
    {
        $this->cover = $cover;

        return $this;
    }

    /**
     * Get cover
     *
     * @return string
     */
    public function getCover()
    {
        return $this->cover;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return Activity
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set conditions
     *
     * @param string $conditions
     *
     * @return Activity
     */
    public function setConditions($conditions)
    {
        $this->conditions = $conditions;

        return $this;
    }

    /**
     * Get conditions
     *
     * @return string
     */
    public function getConditions()
    {
        return $this->conditions;
    }

    /**
     * Set status
     *
     * @param integer $status
     *
     * @return Activity
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set orders
     *
     * @param integer $orders
     *
     * @return Activity
     */
    public function setOrders($orders)
    {
        $this->orders = $orders;

        return $this;
    }

    /**
     * Get orders
     *
     * @return integer
     */
    public function getOrders()
    {
        return $this->orders;
    }

    /**
     * Set update
     *
     * @param integer $update
     *
     * @return Activity
     */
    public function setUpdate($update)
    {
        $update = time();
        $this->update = $update;

        return $this;
    }

    /**
     * Get update
     *
     * @return integer
     */
    public function getUpdate()
    {
        $this->update = time();
        return $this->update;
    }

    /**
     * Set type
     *
     * @param integer $type
     *
     * @return Activity
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return integer
     */
    public function getType()
    {
        return $this->type;
    }
}
